package cn.autumnorange.app.common.provider.cacheannotation.filter;

import org.redisson.api.RedissonClient;

public abstract class AbstractRedissionFilter  implements RedissionFilter {
    private RedissionFilter nextRedissionFilter;
    private RedissonClient redissonClient;
    private  String dataType = null;
    public AbstractRedissionFilter(String dataType, RedissonClient redissonClient){
        this.dataType=dataType;
        this.redissonClient=redissonClient;
    }
    private AbstractRedissionFilter(){};

    public RedissionFilter getNextRedissionFilter() {
        return nextRedissionFilter;
    }

    public RedissonClient getRedissonClient() {
        return redissonClient;
    }

    public void setRedissonClient(RedissonClient redissonClient) {
        this.redissonClient = redissonClient;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    @Override
    public void setNextFilter(RedissionFilter redissionFilter) {
        this.nextRedissionFilter = redissionFilter;

    }
}
